<template>
	<view class="empty-box" :style="{height:$u.addUnit(height)}">
		<image src="/static/img/common/empty.png" mode=""></image>
		<view class="">{{text}}</view>
	</view>
</template>

<script>
	export default {
		name:"Empty",
		props:{
			text:{
				type:String,
				default:'暂无数据'
			},
			height:{
				type:[String, Number],
				default:700
			},
		}
	}
</script>

<style lang="scss" scoped>
	.empty-box{
		display: flex;
		flex-direction: column;
		align-items: center;
		justify-content: center;
		font-size: 32rpx;
		width: 100%;
		position: relative;
		height: 700rpx;
		image{
			width: 750rpx;
			height: 344rpx;
		}
		view{
			letter-spacing: 4rpx;
			padding-left: 4rpx;
			position: relative;
			margin-top: -24rpx;
			font-weight: bold;
		}
	}
</style>